<script lang="ts" setup>
// import { listen } from '@tauri-apps/api/event';
// import { invoke } from '@tauri-apps/api/core';
import { onMounted ,onUnmounted,ref} from 'vue';
const clipboardHistory = ref<any>();
// TODO 不合理
// const unlisten = await listen('login', (event) => {
//     clipboardHistory.value += event.payload;// 监听到登录事件，将登录信息添加到历史记录中
// });
onMounted(() => {
    // invoke('login', { username: 'xuwenqiang' , password: '123456' });
});
onUnmounted(()=>{
    // unlisten();
})

</script>

<template>
  <div class="clipboard-history">
    <h1>历史记录</h1>
    {{ clipboardHistory }}
  </div>
</template>
